google.maps.__gjsload__('geometry', function(_){var mla=function(a,b){return Math.abs(_.Td(b-a,-180,180))},nla=function(a,b,c,d,e){if(!d){c=mla(a.lng(),c)/mla(a.lng(),b.lng());if(!e)return e=Math.sin(_.Dd(a.lat())),e=Math.log((1+e)/(1-e))/2,b=Math.sin(_.Dd(b.lat())),_.Gd(2*Math.atan(Math.exp(e+c*(Math.log((1+b)/(1-b))/2-e)))-Math.PI/2);a=e.fromLatLngToPoint(a);b=e.fromLatLngToPoint(b);return e.fromPointToLatLng(new _.R(a.x+c*(b.x-a.x),a.y+c*(b.y-a.y))).lat()}e=_.Dd(a.lat());a=_.Dd(a.lng());d=_.Dd(b.lat());b=_.Dd(b.lng());c=_.Dd(c);return _.Td(_.Gd(Math.atan2(Math.sin(e)* Math.cos(d)*Math.sin(c-b)-Math.sin(d)*Math.cos(e)*Math.sin(c-a),Math.cos(e)*Math.cos(d)*Math.sin(a-b))),-90,90)},qw={containsLocation:function(a,b){a=_.Be(a);var c=_.Td(a.lng(),-180,180),d=!!b.get("geodesic"),e=b.get("latLngs"),f=b.get("map");f=!d&&f?f.getProjection():null;for(var g=!1,h=0,k=e.getLength();h=x||c=t)&&nla(q,r,c,d,f)=Math.abs(_.Td(u-x,-180,180))&&(Math.abs(_.Td(u-d,-180,180))<=c||Math.abs(_.Td(x-d,-180, 180))<=c)){u=a.lat();x=Math.min(r.lat(),t.lat())-c;var G=Math.max(r.lat(),t.lat())+c;u=u>=x&&u<=G}if(u)return!0;if(180=y||d-c<=z:d+c>=z&&d-c<=y)if(r=nla(r,t,d,f,b),Math.abs(r-a.lat())f)return null;var g=e*c+Math.sqrt(f);g/=d*d+e*e;var h=(c-e*g)/d;g=Math.atan2(h,g);if(g<-Math.PI/2||g>Math.PI/2)g=e*c-Math.sqrt(f),g=Math.atan2(h,g/(d*d+e*e));if(g<-Math.PI/2||g>Math.PI/2)return null;a=_.ze(a)-Math.atan2(b,d*Math.cos(g)-e*Math.sin(g));return new _.we(_.Gd(g),_.Gd(a))}; _.Ta("module$exports$mapsapi$geometry$spherical.Spherical.computeOffsetOrigin",rw.computeOffsetOrigin); rw.interpolate=function(a,b,c){a=_.Be(a);b=_.Be(b);var d=_.xe(a),e=_.ze(a),f=_.xe(b),g=_.ze(b),h=Math.cos(d),k=Math.cos(f);b=rw.qt(a,b);var l=Math.sin(b);if(1E-6>l)return new _.we(a.lat(),a.lng());a=Math.sin((1-c)*b)/l;c=Math.sin(c*b)/l;b=a*h*Math.cos(e)+c*k*Math.cos(g);e=a*h*Math.sin(e)+c*k*Math.sin(g);return new _.we(_.Gd(Math.atan2(a*Math.sin(d)+c*Math.sin(f),Math.sqrt(b*b+e*e))),_.Gd(Math.atan2(e,b)))};_.Ta("module$exports$mapsapi$geometry$spherical.Spherical.interpolate",rw.interpolate); rw.qt=function(a,b){var c=_.xe(a);a=_.ze(a);var d=_.xe(b);b=_.ze(b);return 2*Math.asin(Math.sqrt(Math.pow(Math.sin((c-d)/2),2)+Math.cos(c)*Math.cos(d)*Math.pow(Math.sin((a-b)/2),2)))};rw.computeDistanceBetween=function(a,b,c){a=_.Be(a);b=_.Be(b);c=c||6378137;return rw.qt(a,b)*c};_.Ta("module$exports$mapsapi$geometry$spherical.Spherical.computeDistanceBetween",rw.computeDistanceBetween); rw.computeLength=function(a,b){b=b||6378137;var c=0;a instanceof _.Oi&&(a=a.getArray());for(var d=0,e=a.length-1;da.getRadius())throw _.je("Invalid path passed to computeArea(): Circle must have non-negative radius.");if(0>b)throw _.je("Invalid radiusOfSphere passed to computeArea(): radiusOfSphere must be non-negative."); if(a.getRadius()>Math.PI*b)throw _.je("Invalid path passed to computeArea(): Circle must not cover more than 100% of the sphere.");return 2*Math.PI*Math.pow(b,2)*(1-Math.cos(a.getRadius()/b))}if(a instanceof _.Xf){if(0>b)throw _.je("Invalid radiusOfSphere passed to computeArea(): radiusOfSphere must be non-negative.");if(a.Ua.lo>a.Ua.hi)throw _.je("Invalid path passed to computeArea(): the southern LatLng of a LatLngBounds cannot be more north than the northern LatLng.");var c=2*Math.PI*Math.pow(b, 2)*(1-Math.cos((a.Ua.lo-90)*Math.PI/180));c-=2*Math.PI*Math.pow(b,2)*(1-Math.cos((a.Ua.hi-90)*Math.PI/180));return c*Math.abs(a.Ha.hi-a.Ha.lo)/360}return Math.abs(rw.computeSignedArea(a,b))};_.Ta("module$exports$mapsapi$geometry$spherical.Spherical.computeArea",rw.computeArea); rw.Vv=function(a){var b=sw;if(isFinite(a)){var c=a%360;a=Math.round(c/90);c-=90*a;if(30===c||-30===c){c=.5*_.v(Math,"sign").call(Math,c);var d=Math.sqrt(.75)}else 45===c||-45===c?(c=_.v(Math,"sign").call(Math,c)*Math.SQRT1_2,d=Math.SQRT1_2):(d=c/180*Math.PI,c=Math.sin(d),d=Math.cos(d));switch(a&3){case 0:b[0]=c;b[1]=d;break;case 1:b[0]=d;b[1]=-c;break;case 2:b[0]=-c;b[1]=-d;break;default:b[0]=-d,b[1]=c}}else b[0]=NaN,b[1]=NaN};var sw=Array(2); rw.Lu=function(a,b){rw.Vv(a.lat());var c=_.A(sw),d=c.next().value;c=c.next().value;rw.Vv(a.lng());var e=_.A(sw);a=e.next().value;e=e.next().value;b[0]=c*e;b[1]=c*a;b[2]=d};rw.uC=function(a){for(var b=0,c=1;cb;++b)if(0!==a[b]){if(0>a[b])return[-a[0],-a[1],-a[2]];break}return a}; rw.Dv=function(a,b,c){var d=a[0]*b[1]+a[1]*b[0]+a[2]*b[3]-a[3]*b[2],e=a[0]*b[2]-a[1]*b[3]+a[2]*b[0]+a[3]*b[1],f=a[0]*b[3]+a[1]*b[2]-a[2]*b[1]+a[3]*b[0];c[0]=a[0]*b[0]-a[1]*b[1]-a[2]*b[2]-a[3]*b[3];c[1]=d;c[2]=e;c[3]=f}; rw.Ir=function(a,b,c){var d=a[0]-b[0],e=a[1]-b[1],f=a[2]-b[2],g=a[0]+b[0],h=a[1]+b[1],k=a[2]+b[2],l=g*g+h*h+k*k,m=e*k-f*h;f=f*g-d*k;d=d*h-e*g;e=l*l+m*m+f*f+d*d;0!==e?(b=Math.sqrt(e),c[0]=l/b,c[1]=m/b,c[2]=f/b,c[3]=d/b):(l=rw.uC(rw.Jy([a[0]-b[0],a[1]-b[1],a[2]-b[2]])),m=Array(4),rw.Ir(a,l,m),a=Array(4),rw.Ir(l,b,a),rw.Dv(a,m,c))}; rw.computeSignedArea=function(a,b){b=b||6378137;a instanceof _.Oi&&(a=a.getArray());a=(0,_.Cf)(a);if(0===a.length)return 0;var c=Array(4),d=Array(3),e=[1,0,0,0],f=Array(3);rw.Lu(a[a.length-1],f);for(var g=0;g>1):h>>1;h=1;k=0;do l=a.charCodeAt(d++)-63-1,h+=l<>1):h>>1;c[g]=new _.we(1E-5*e,1E-5*f,!0)}c.length=g;return c}};_.Ta("module$exports$mapsapi$poly$polylineCodec.PolylineCodec.decodePath",tw.decodePath); tw.encodePath=function(a){a instanceof _.Oi&&(a=a.getArray());a=(0,_.Cf)(a);return tw.zC(a,function(b){return[Math.round(1E5*b.lat()),Math.round(1E5*b.lng())]})};_.Ta("module$exports$mapsapi$poly$polylineCodec.PolylineCodec.encodePath",tw.encodePath);tw.zC=function(a,b){for(var c=[],d=[0,0],e,f=0,g=_.Od(a);fa?~(a<<1):a<<1,b)}; tw.AC=function(a,b){for(;32<=a;)b.push(String.fromCharCode((32|a&31)+63)),a>>=5;b.push(String.fromCharCode(a+63))};var ola={encoding:tw,spherical:rw,poly:qw};_.C.google.maps.geometry=ola;_.Ue("geometry",ola);});